package mode.states18;

public class Receive extends AbstractEvent{

    @Override
    public void receive(Shopping shopping, Boolean isConfirm) {
        if(isConfirm){
            System.out.println("亲，签收物品成功，期待下次与您再次相见");
            shopping.setEvent(Shopping.EVALUATE_STATE);
        }else {
            System.out.println("亲，签收阶段退款成功");
            shopping.setEvent(Shopping.REFUND);
        }
    }

}
